package edu.uab.enronemail.helper;

import java.util.List;

public class StringUtility {

	public static String joinStringsByDelimitter(List<String> stringList, String delimitter){
		String returnString = "";
		if(stringList == null) return "";
		for(String str:stringList){
			if(str.isEmpty()) continue;
			returnString += (str + delimitter);
		}
		return returnString.length() > 0 ? returnString.substring(0, returnString.length() - 1) : "";
	}
}
